<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>锚点</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            list-style: none;
            position: fixed;
            top: 100px;
            right: 0px;
        }
        ul>li{
            width: 100px;
            height: 50px;
            line-height: 50px;
            border: 1px solid black;
        }
        div{
            height: 400px;
        }
        /* 锚点的作用：页面不同区域的跳转，使用a链接 */
    </style>
</head>
<body>
    <ul>
        <li><a href="#a">京东优选</a></li>
        <li><a href="#b">频道广场</a></li>
        <li><a href="#c">秒杀推荐</a></li>
        <li><a href="#d">双十一</a></li>
    </ul>
    <div id="a">衣服</div>
    <div id="b">裤子</div>
    <div id="c">鞋子</div>
    <div id="d">帽子</div>
</body>
</html>